import http from '@/api';

/**
 * @name 登录模块
 */
// 用户登录
export const loginApi = params => {
  return http.post(`/auth/login`, params, { loading: false });
};

// 获取用户权限
export const userFindPermission = (params: { username: string }) => {
  return http.get(`/auth/getUserMenuAndPermission`, params, { loading: false });
};

// 用户退出登录
export const logoutApi = () => {
  return http.get(`/auth/logout`);
};
